const express = require('express');
const router = express.Router();
// 导入业务处理层
const label = require('../../service/label');
router.get('/getLabel', async (req, res) => {
    let ins = await label.get_all_label();
    if (ins.length) {
        res.send({
            msg: 'success',
            falg: true,
            ins
        })
    } else {
        res.send({
            msg: 'error',
            falg: false,
            ins
        })
    }
})

module.exports = router;